package com.gitee.cashzhang27.test.boot.redisson.common.enmu;

import static cn.hutool.core.date.DatePattern.PURE_DATETIME_PATTERN;
import static com.gitee.cashzhang27.test.boot.redisson.common.constant.ServiceCodeConstants.SERVICE_CODE;

import com.gitee.cashzhang27.test.boot.redisson.common.constant.ServiceCodeConstants;
import lombok.Getter;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/10/20 11:46
 */
public enum ServiceCodeEnums {


  /**
   * 用户编码
   */
  USER_CODE(ServiceCodeConstants.USER_CODE, PURE_DATETIME_PATTERN);

  @Getter
  private String prefix;

  @Getter
  private String type;

  ServiceCodeEnums(String prefix, String type) {
    this.prefix = SERVICE_CODE + prefix;
    this.type = type;
  }

}
